package com.itfitness.opengldemo

import android.content.Intent
import android.graphics.Bitmap
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import com.blankj.utilcode.util.ImageUtils
import java.io.ByteArrayOutputStream

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val camera = findViewById<CameraView>(R.id.camera)
        findViewById<ImageView>(R.id.img).setOnClickListener {
            camera.takePhoto()
        }
    }
}